package Song.Han.day03.demo03;

public class Student {

    private String name;
    private int age;
    private boolean gender;

    //Alt+ins 快捷设置Getter&Setter
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //！！！ 对于boolean值，Getter方法一定要写成isXxx的形式，Setter方法不变
    public boolean isGender(){
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

}
